<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>${baseInfo.context}接口</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<h3>请求地址前缀 ${baseInfo.protocol}://${baseInfo.host}:${baseInfo.port}/${baseInfo.context}</h3>

<#list result as ctrl>
    <h3 class="bg-primary"><span>${ctrl.descrip}</span></h3>
    <#list ctrl.methodList as mItem>
        <h3 class="bg-info">
        <span style="font-size:20px;">
            <#list ctrl.mapping as url>/${url}</#list><#list mItem.mapping as url>/${url}</#list>
        </span>
            <span style="font-size:20px;">${mItem.method}</span>
            <span style="font-size:20px;">${mItem.descrip}</span>
        </h3>

        <table class="table">
            <thead>
            <tr>
                <th>序号</th>
                <th>字段</th>
                <th>类型</th>
                <th>描述</th>
            </tr>
            </thead>
            <tbody>
            <#list mItem.paramList as pItem>
                <tr>
                    <td>${pItem_index + 1}</td>
                    <td>${pItem.key}</td>
                    <td>${pItem.type}</td>
                    <td>${pItem.descrip}</td>
                </tr>
            </#list>
            </tbody>
        </table>
    </#list>
</#list>
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
</body>
</html>